import {
  LaptopOutlined,
  NotificationOutlined,
  UserOutlined,
  ToolOutlined,
} from '@ant-design/icons';




const router = [
  { path: '/', redirect: '/home' },
  {
    path: '/home',
    component: '@/pages/Layout/index',
    routes: [
      {
        name: '首页',
        icon: LaptopOutlined,
        path: '/home',
        component: '@/pages/Home',
      },
      {
        name: '个人中心',
        icon: UserOutlined,
        path: '/home/user',
        disabled: false,
        component: '@/pages/User',
      },
      {
        name: '更改信息',
        icon: NotificationOutlined,
        path: '/home/edmit',
        component: '@/pages/Edmit',
        routes: [
          {
            name: '个人更改',
            icon: LaptopOutlined,
            path: '/home/edmit/grgg',
            disabled: false,
            component: '@/pages/Edmit/Grgg',
          },
        ],
      },

      {
        name: '前端工具',
        icon: ToolOutlined,
        path: '/home/useTool',
        disabled: false,
        component: '@/pages/UseTool',
      },
    ],
  },
  { path: '/login', component: '@/Login' },
  { component: '@/pages/404' },
];

export default router;
